#ifndef TABSVIEW_H
#define TABSVIEW_H

#include <QtGui/QWidget>

class QListWidget;
class QStackedWidget;

class TabsView : public QWidget
{
	Q_OBJECT
	signals:
		void tabChanged(QWidget *currentWidget);
	private slots:
		void itemChanged(int index);
	public:
		TabsView(QWidget *parent = 0);
		~TabsView();
	
		void setCurrentWidget(QWidget *widget);
		void addTab(QWidget *tabWidget,const QIcon& tabIcon,const QString& tabText);
	private:
		QListWidget *listWidget;
		QStackedWidget *stackedWidget;
};

#endif
